package com.fir.proto.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * @author fir
 */
@Data
@Component
@ConfigurationProperties(prefix = "mqtt")
public class MqttConfig {

    /**
     * mqtt连接地址
     */
    private String ip;

    /**
     * mqtt连接端口
     */
    private int port;

    /**
     * mqtt连接授权账号
     */
    private String username = "admin";

    /**
     * mqtt连接授权密码
     */
    private String password = "public";

    private boolean connectMqtt;
}
